package com.cynteka.cyfoman.ui;

public class Parameters {
    public static final String ACTIONS_FILE_NAME = "./target/classes/actions.xml";
    public static final String EXPLORERS_FILE_NAME = "./target/classes/explorers.xml";
    public static final String QUERIES_FILE_NAME = "./target/classes/queries.xml";
    public static final String FOLDER2DB_FILE_NAME = "./target/classes/folder2db.xml";

    public static String getActionsFileName() {
        return getString("ACTIONS", ACTIONS_FILE_NAME);
    }

    public static String getExplorersFileName() {
        return getString("EXPLORERS", EXPLORERS_FILE_NAME);
    }

    public static String getQueriesFileName() {
        return getString("QUERIES", QUERIES_FILE_NAME);
    }

    public static String getFolder2DBFileName() {
        return getString("FOLDER2DB", FOLDER2DB_FILE_NAME);
    }

    private static String getString(String propName, String defaultValue) {
        String res = System.getProperty(propName);
        return res == null ? defaultValue : res;
    }

}
